package Q1;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int n = scanner.nextInt();
        int x = scanner.nextInt();
        int[] arr = new int[n];
        for (int i = 0; i < n; i++) {
            arr[i] = scanner.nextInt();
        }


    }

    /**
     * 只使用冲撞
     * @param n
     * @param arr
     * @return
     */
    public static long method1(int n, int[] arr) {
        long sum = 0;
        for (int i = 0; i < n; i++) {
            sum += arr[i];
        }

        return sum;
    }

    /**
     * 只使用践踏
     * @param n
     * @param x
     * @param arr
     * @return
     */
    public static long method2(int n, int x, int[] arr) {
        long max = 0;
        for (int i = 0; i < n; i++) {
            max = Math.max(max, arr[i]);
        }

        return max * x;
    }

    /**
     * 使用冲撞和践踏
     * @param n
     * @param x
     * @param arr
     * @return
     */
    public static long method3(int n, int x, int[] arr) {

    }
}
